<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <title></title>
 </head>
 <body>
   <div></div>
   <script type="text/javascript">
   function tulin(say) {
   switch (say) {
    case '土豆':
     console.log('呦');
      break;
      case '西红柿':
      console.log('呦呵');
        break;
        case '西瓜':
        console.log('呦呵哈哈哈');
          break;
    default:

  }
}
     tulin('土豆');
     tulin('西红柿');
     tulin('西瓜');

   </script>
 </body>
</html>
